package com.ecity.util.timer{
	import flash.events.TimerEvent;
	import flash.utils.Timer;
	/**
	 * ...
	 * @author yicheng.zhang
	 */
	public class PlayerCounter {
		private static var timer:Timer;
		public static function start(delay:uint=5000):void {
			timer = new Timer(delay);
			timer.addEventListener(TimerEvent.TIMER_COMPLETE, onTimerComplete);
			timer.start();
			//DO STH.
		}
		
		private function onTimerComplete(e:TimerEvent):void {
			timer.removeEventListener(TimerEvent.TIMER_COMPLETE, onTimerComplete); 
			timer = null;
		}
	}
}